power
This function raises x to the power y.
double power(double x, double y)
Parameters:
x
The base of the calculation.
y
The exponent of the calculation.
Return value:
Returns x to the power y.
Remarks:
If the magnitude of the result is so large that it cannot be represented, the function returns 0.
Example:
void main()
{
alert("power test", "3 to the power 4 is "+power(3, 4)+".");
}